package cn.orangeframe.neon.application.run.async;

import cn.orangeframe.neon.application.tasks.WorkflowSystemTask;
import cn.orangeframe.neon.domain.model.TaskModel;
import cn.orangeframe.neon.domain.model.WorkflowModel;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

import java.util.concurrent.CountDownLatch;

@Getter
@Setter
public class AsyncTaskExecuteEvent extends ApplicationEvent {

    private WorkflowSystemTask systemTask;

    private WorkflowModel workflowModel;

    private TaskModel taskModel;

    public AsyncTaskExecuteEvent(Object source, WorkflowSystemTask systemTask, WorkflowModel workflowModel, TaskModel taskModel) {
        super(source);
        this.systemTask = systemTask;
        this.workflowModel = workflowModel;
        this.taskModel = taskModel;
    }
}
